//index.js
//获取应用实例
const Api= require('../../services/api');
var app = getApp()
Page({
  data: {
    h5URL:Api.h5URL,
    assets:app.assets,
    assetsByEnv:app.assetsByEnv,
    key:'',
    openid:'',
    version:'',
    userType:'',
    keeper_uid:''
  },
  onLoad: function (options) {
      this.setData({
          version:new Date().getTime()
      });
      wx.setNavigationBarTitle({
        title: '店促通'
      });
      var user = wx.getStorageSync('user');
      this.setData({
          key:user.key,
          openid:user.openid,
          userType:options.userType,
          keeper_uid:options.keeper_uid,
          clerk_openid:options.clerk_openid,
          clerk_key:options.clerk_key
      });
  }
});
